@@ -146,7 +146,7 @@ def change_password_branch_campus_admin(request): |
||
146 | 146 |
|
147 | 147 |
# 密码不匹配 |
148 | 148 |
if not check_password(old_password, admin.encryption): |
149 |
- return response() |
|
149 |
+ return response(40001, 'Password mismatch', '密码不匹配') |
|
150 | 150 |
|
151 | 151 |
encryption = make_password(new_password, settings.MAKE_PASSWORD_SALT, settings.MAKE_PASSWORD_HASHER) |
152 | 152 |
|